<div class="container">
    <div class="row">
        <div id="show" class="span12">
            <h1>Data Nilai</h1>
            <table width="400" border="1" class="table table-striped">
            <thead>
                <tr>
                    <th>#</th>
                    <th>NIM</th>
                    <th>Nama</th>
                    <th>Kelas</th>
                    <th>Benar</th>
                    <th>Salah</th>
                    <th>Nilai</th>
                    <th>Lama Pengerjaan</th>
                </tr>
            </thead>
            <tbody>
                <?php $i=0; foreach($nilais as $nilai){$i++;?>
                <tr>
                    <td><?php echo $i; ?></td>
                    <td><?php echo $nilai->nim; ?></td>
                    <td><?php echo $nilai->nama; ?></td>
                    <td><?php echo $nilai->kelas; ?></td>
                    <td><?php echo $nilai->benar; ?></td>
                    <td><?php echo $nilai->salah; ?></td>
                    <td><?php echo $nilai->nilai; ?></td>
                    <td><?php echo $nilai->lama_pengerjaan; ?></td>
                </tr>
                <?php } ?>
            </tbody>
        </div>
    </div>
</div>